***************************************************
****----			Table A14	  		   ----****
***************************************************

clear all
cap log close 
set more off

****---- Change directory

global data "/Users/Replication material/Data"

****---- Analysis

use "$data/dataset_replication.dta", clear

global controls Capoluogodiprovincia  population_density_1911 expenditures_1912_PC surplus_tot_1912_PC exp_police_hygiene_1912_PC exp_just_secur_1912_PC  exp_edu_1912_PC exp_public_work_1912_PC share_literate share_literate_male share_literate_female share_male


qui reghdfe gini_log aug_dec_18_sd N_caduti_PC_sd $controls, cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg11
qui reghdfe gini_log aug_dec_18_PVictims_sd $controls, cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg12 
qui reghdfe gini_log aug_dec_18 $controls, cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg13
qui reghdfe gini_log aug_dec_18_out $controls, cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg14
qui reghdfe gini_log N_caduti_PC_noTR $controls, cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg15
qui glm gini_index aug_dec_18_sd i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE $controls, cluster(distretto_FE) family(poisson) link(log)
est store reg16
qui reghdfe gini_log aug_dec_18_sd $controls if campo_prigionia==0, cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg17		  
qui reghdfe gini_log aug_dec_18_sd $controls campo_prigionia, cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg18
qui reghdfe gini_log aug_dec_18_sd $controls if Capoluogodiprovincia==0, cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg19
qui reghdfe gini_log aug_dec_18_sd $controls if region!="veneto"  & region!="lombardia", cluster(distretto_FE) absorb(i.Zonaaltimetrica i.N_contribuenti_quartile##i.distretto_FE)
est store reg110

esttab reg11 reg12 reg13 reg14 reg15 reg16 reg17 reg18 reg19 reg110, keep(aug_dec_18_sd aug_dec_18_PVictims_sd aug_dec_18 aug_dec_18_out N_caduti_PC_noTR) se r2 staraux collabels(, none) ml(,none) cells(b(star fmt (%9.3f)) se(par)) star(* 0.10 ** 0.05 *** 0.01) replace
